package com.ruoyi.system.service.construction.impl;

import com.ruoyi.system.domain.construction.RentalService;
import com.ruoyi.system.mapper.construction.RentalServiceMapper;
import com.ruoyi.system.service.construction.RentalServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RentalServiceServiceImpl implements RentalServiceService {

    @Autowired
    private RentalServiceMapper rentalServiceMapper;

    /**
     * 查询租赁服务信息
     *
     * @param rentalId 租赁服务信息ID
     * @return 租赁服务信息
     */
    @Override
    public RentalService selectRentalServiceById(Integer rentalId)
    {
        return rentalServiceMapper.selectRentalServiceById(rentalId);
    }

    /**
     * 查询租赁服务信息列表
     *
     * @param rentalService 租赁服务信息
     * @return 租赁服务信息
     */
    @Override
    public List<RentalService> selectRentalServiceList(RentalService rentalService)
    {
        return rentalServiceMapper.selectRentalServiceList(rentalService);
    }

    /**
     * 新增租赁服务信息
     *
     * @param rentalService 租赁服务信息
     * @return 结果
     */
    @Override
    public int insertRentalService(RentalService rentalService)
    {
        return rentalServiceMapper.insertRentalService(rentalService);
    }

    /**
     * 修改租赁服务信息
     *
     * @param rentalService 租赁服务信息
     * @return 结果
     */
    @Override
    public int updateRentalService(RentalService rentalService)
    {
        return rentalServiceMapper.updateRentalService(rentalService);
    }

    /**
     * 批量删除租赁服务信息
     *
     * @param rentalIds 需要删除的租赁服务信息ID
     * @return 结果
     */
    @Override
    public int deleteRentalServiceByIds(Integer[] rentalIds)
    {
        return rentalServiceMapper.deleteRentalServiceByIds(rentalIds);
    }

    @Override
    public List<RentalService> zulinList(RentalService rentalService) {
        return rentalServiceMapper.zulinList(rentalService);
    }

    /**
     * 删除租赁服务信息信息
     *
     * @param rentalId 租赁服务信息ID
     * @return 结果
     */
    @Override
    public int deleteRentalServiceById(Integer rentalId)
    {
        return rentalServiceMapper.deleteRentalServiceById(rentalId);
    }
}
